package main

import (
	"fmt"
	"html"
	"net/http"
)

func main() {
	// client := &http.Client{
	// 	Timeout: time.Second * 90,
	// }
	http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
		fmt.Println(r.RequestURI)
		fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.String()))
	})
	http.HandleFunc("/foo", func(w http.ResponseWriter, r *http.Request) {
		fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
	})
	http.ListenAndServe(":8090", nil)
}
